/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.spider.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * stackoverflow用户Entity
 * @author hongye
 * @version 2017-04-18
 */
public class StackoverflowUser extends DataEntity<StackoverflowUser> {
	
	private static final long serialVersionUID = 1L;
	private String sourceUrl;		// 源地址
	private String username;		// 姓名
	private String selfintroduction;		// 简介
	private Integer reputation;		// 声望
	private Integer gold;		// 金徽章
	private Integer silver;		// 银徽章
	private Integer bronze;		// 铜徽章
	private Integer answer;		// 回答
	private Integer question;		// 问题
	private String reached;		// 访问次数
	
	public StackoverflowUser() {
		super();
	}

	public StackoverflowUser(String id){
		super(id);
	}

	@Length(min=0, max=200, message="源地址长度必须介于 0 和 200 之间")
	public String getSourceUrl() {
		return sourceUrl;
	}

	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}
	
	@Length(min=1, max=50, message="姓名长度必须介于 1 和 50 之间")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getSelfintroduction() {
		return selfintroduction;
	}

	public void setSelfintroduction(String selfintroduction) {
		this.selfintroduction = selfintroduction;
	}
	
	@NotNull(message="声望不能为空")
	public Integer getReputation() {
		return reputation;
	}

	public void setReputation(Integer reputation) {
		this.reputation = reputation;
	}
	
	public Integer getGold() {
		return gold;
	}

	public void setGold(Integer gold) {
		this.gold = gold;
	}
	
	public Integer getSilver() {
		return silver;
	}

	public void setSilver(Integer silver) {
		this.silver = silver;
	}
	
	public Integer getBronze() {
		return bronze;
	}

	public void setBronze(Integer bronze) {
		this.bronze = bronze;
	}
	
	public Integer getAnswer() {
		return answer;
	}

	public void setAnswer(Integer answer) {
		this.answer = answer;
	}
	
	public Integer getQuestion() {
		return question;
	}

	public void setQuestion(Integer question) {
		this.question = question;
	}
	
	@Length(min=0, max=10, message="访问次数长度必须介于 0 和 10 之间")
	public String getReached() {
		return reached;
	}

	public void setReached(String reached) {
		this.reached = reached;
	}
	
}